/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.center.dao.impl;

import org.springframework.stereotype.Repository;

import com.sinodata.bsm.center.dao.BaseDao;
import com.sinodata.bsm.center.dao.TrapRuleDao;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author wangyazhou
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2012-12-26 下午9:41:37          wangyazhou        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
@Repository
public class TrapRuleDaoImpl extends BaseDao implements TrapRuleDao {

    @Override
    public void delete(Long id) {
        String hql = "delete from FaultTrapRule where id=" + id.longValue();
        getSession().createQuery(hql).executeUpdate();
    }

}
